package Month4;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class a20250426IOStream
{
    public static void main(String[] args) throws IOException
    {
        FileOutputStream fos = new FileOutputStream("myfile\\a.txt");
        //FileOutputStream fos = new FileOutputStream("myfile\\a.txt",true);

        for (int i = 0; i < 100; i++)
        {
            String str = "wuqi";
            byte[] bytes1 = str.getBytes();
            fos.write(bytes1);
            String str2 = "\r\n";
            fos.write(str2.getBytes());
            String str3 = "beautiful";
            fos.write(str3.getBytes());
            fos.write(str2.getBytes());
        }

        fos.close();
    }
}
